import request from '@/utils/request'
const baseURL = process.env.VUE_APP_SPECIES_API
const apiURL = baseURL + '/opa-api/admin/v1/species_limit'
/**
 * 获取金币限制数量
 * http://showdoc.wisetimes.cn:4999/web/#/235/1985
 * sXVmZsEJ
 * @param {*} params
 * @returns
 */
export function exchangeLimit (params) {
  return request({
    url: apiURL,
    method: 'get',
    params
  })
}

/**
 * 设置金币限制
 * http://192.168.88.247:4999/web/#/80/547
 * sXVmZsEJ
 * @param {*} data
 * @returns
 */
export function updateExchangeLimit (data) {
  return request({
    url: apiURL,
    method: 'post',
    data: data
  })
}
